﻿<riaControlsBase:UserControlBase x:Class="SBPweb.PlAzureNet.Client.Library.Controls.ActionsContent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:riaControlsBase="clr-namespace:SBPweb.RIA.Client.Controls.Base;assembly=SBPweb.RIA.Client.Controls"
    xmlns:libraryControls="clr-namespace:SBPweb.PlAzureNet.Client.Library.Controls;assembly=SBPweb.PlAzureNet.Client.Library.Controls.SL"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="500" HorizontalAlignment="Stretch">
    <UserControl.Resources>
        <Style x:Key="tbkButtonCaption" TargetType="TextBlock">
            <Setter Property="Foreground" Value="#FFFFFFFF" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="FontSize" Value="9.5" />
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
        <Style x:Key="tbkButtonCaptionBig" TargetType="TextBlock">
            <Setter Property="Foreground" Value="#FFFFFFFF" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="FontSize" Value="24" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Margin" Value="0,0,0,0" />
            <Setter Property="Effect">
                <Setter.Value>
                    <DropShadowEffect Direction="-90" BlurRadius="10" ShadowDepth="1" Opacity="1" />
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="tbkButtonCaptionMid" TargetType="TextBlock" BasedOn="{StaticResource tbkButtonCaptionBig}">
            <Setter Property="FontSize" Value="15" />
        </Style>
        <Style x:Key="imgActionIcon" TargetType="Image">
            <Setter Property="Width" Value="128" />
            <Setter Property="Opacity" Value="0.75" />
            <Setter Property="Effect">
                <Setter.Value>
                    <DropShadowEffect Direction="-90" BlurRadius="17" ShadowDepth="1" Opacity="0.5" />
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">

        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="56" />
            <RowDefinition Height="50" />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>

        <libraryControls:ToolBarButton x:Name="tbbGive" Grid.Column="0" Width="Auto" Height="180" Margin="0,0,3,0" HorizontalAlignment="Stretch" ButtonFace="#880EC800" ButtonFaceHover="#FF0EC800" ButtonFacePressed="#CC0EC800" Opacity="0.75" MouseClick="tbbGive_MouseClick">
            <libraryControls:ToolBarButton.ButtonContent>
                <Grid>
                    <Image x:Name="imgGive" Style="{StaticResource imgActionIcon}" Source="/SBPweb.PlAzureNet.Client.Library.Controls.SL;component/Resources/Give_256x256.png" />
                    <TextBlock Style="{StaticResource tbkButtonCaptionBig}" Text="give" />
                </Grid>
            </libraryControls:ToolBarButton.ButtonContent>
        </libraryControls:ToolBarButton>

        <libraryControls:ToolBarButton x:Name="tbbPass" Grid.Column="1" Width="Auto" Height="180" HorizontalAlignment="Stretch" ButtonFace="#880E92F6" ButtonFaceHover="#FF0E92F6" ButtonFacePressed="#CC0E92F6" Opacity="0.75" MouseClick="tbbPass_MouseClick">
            <libraryControls:ToolBarButton.ButtonContent>
                <Grid>
                    <Image x:Name="imgPass" Style="{StaticResource imgActionIcon}" Source="/SBPweb.PlAzureNet.Client.Library.Controls.SL;component/Resources/Pass_256x256.png" />
                    <TextBlock Style="{StaticResource tbkButtonCaptionBig}" Text="pass" />
                </Grid>
            </libraryControls:ToolBarButton.ButtonContent>
        </libraryControls:ToolBarButton>

        <libraryControls:ToolBarButton x:Name="tbbTake" Grid.Column="2" Width="Auto" Height="180" Margin="3,0,0,0" HorizontalAlignment="Stretch" ButtonFace="#88FF2828" ButtonFaceHover="#FFFF2828" ButtonFacePressed="#CCFF2828" Opacity="0.75" MouseClick="tbbTake_MouseClick">
            <libraryControls:ToolBarButton.ButtonContent>
                <Grid>
                    <Image x:Name="imgTake" Style="{StaticResource imgActionIcon}" Source="/SBPweb.PlAzureNet.Client.Library.Controls.SL;component/Resources/Take_256x256.png" />
                    <TextBlock Style="{StaticResource tbkButtonCaptionBig}" Text="take" />
                </Grid>
            </libraryControls:ToolBarButton.ButtonContent>
        </libraryControls:ToolBarButton>

        <ScrollViewer x:Name="scvQuantity" Grid.ColumnSpan="3" Grid.Row="1" Margin="-6,-2,-6,-3" Padding="0" BorderThickness="0" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
            <ItemsControl x:Name="icQuantity">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Margin="3,3,3,3" Orientation="Horizontal" HorizontalAlignment="Left" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <libraryControls:ToolBarButton x:Name="tbbQuantity" Height="46" MouseEnter="tbbQuantity_MouseEnter" MouseClick="tbbQuantity_MouseClick">
                            <libraryControls:ToolBarButton.ButtonContent>
                                <Grid>
                                    <TextBlock Style="{StaticResource tbkButtonCaptionMid}" Text="{Binding}" />
                                </Grid>
                            </libraryControls:ToolBarButton.ButtonContent>
                        </libraryControls:ToolBarButton>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </ScrollViewer>

        <ScrollViewer x:Name="scvPleasures" Grid.ColumnSpan="3" Grid.Row="2" Margin="-6,-2,-6,-3" Padding="0" BorderThickness="0" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
            <ItemsControl x:Name="icPleasures">
                <ItemsControl.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Margin="3,3,3,3" Orientation="Horizontal" HorizontalAlignment="Center" />
                    </ItemsPanelTemplate>
                </ItemsControl.ItemsPanel>
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <libraryControls:ToolBarButton x:Name="tbbPleasure" Height="46" MouseEnter="tbbPleasure_MouseEnter" MouseClick="tbbPleasure_MouseClick">
                            <libraryControls:ToolBarButton.ButtonContent>
                                <Grid>
                                    <TextBlock Style="{StaticResource tbkButtonCaption}" Text="{Binding Name}" />
                                </Grid>
                            </libraryControls:ToolBarButton.ButtonContent>
                        </libraryControls:ToolBarButton>
                    </DataTemplate>
                </ItemsControl.ItemTemplate>
            </ItemsControl>
        </ScrollViewer>

        <!--<libraryControls:StoreAction Grid.Row="2" Grid.ColumnSpan="3" />

        <Button Content="hu" HorizontalAlignment="Left" Margin="3,86,0,0" Name="button1" VerticalAlignment="Top" Width="23" Height="26" Click="button1_Click" Grid.Row="2" Visibility="Visible" />
        <Button Content="en" HorizontalAlignment="Left" Margin="32,86,0,0" Name="button2" VerticalAlignment="Top" Width="23" Height="26" Click="button2_Click" Grid.Row="2" Visibility="Visible" />-->
    </Grid>
</riaControlsBase:UserControlBase>